<script setup>
import { inject } from 'vue';

const money = inject('money');
const add = inject('add');
</script>

<template>
  <div>
    我是孙子组件 - {{ money }} <button @click="add">点我修改money</button>
  </div>
</template>
